package common.events;

import se.sics.kompics.Response;
import common.peer.PeerData;

/**
 * The <code>CyclonNeighborsResponse</code> class represents a response to a
 * <code>CyclonNeighborsRequest</code>, asking the Cyclon component for the
 * current set of Cyclon neighbors.
 * 
 * @author Cosmin Arad <cosmin@sics.se>
 * @version $Id$
 */
public final class PeerDataResponse extends Response {

	/**
	 * the current set of Cyclon neighbors, time-stamped (to show freshness).
	 */
	private final PeerData neighbors;

	public PeerDataResponse(PeerDataRequest request,
			PeerData neighbors) {
		super(request);
		this.neighbors = neighbors;
	}

	public PeerData getData() {
		return neighbors;
	}
}
